package com.eusoft.demo.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @authoe DevMing
 * @data 2021/8/19 9:30
 */
@Configuration
public class WebConfig implements WebMvcConfigurer {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("login/index");
        registry.addViewController("/index").setViewName("login/index");
        registry.addViewController("/main").setViewName("login/index");
    }
}
